/// creatorId : 101
/// groupAvatar : ""
/// groupDesc : null
/// groupName : "群名字"
/// memberCnt : 1
/// qrcode : null
/// notice : null
/// visible : 0
/// backgroundUrl : null
/// nickName : "minim"
/// groupRemark : "不忘初心"

class GroupBaseInfoModel {
  GroupBaseInfoModel({
      num? creatorId,
      num? groupId,
      String? groupAvatar,
      dynamic groupDesc, 
      String? groupName, 
      num? memberCnt, 
      dynamic qrcode, 
      dynamic notice, 
      num? visible, 
      dynamic backgroundUrl, 
      String? nickName, 
      String? groupRemark,}){
    _creatorId = creatorId;
    _groupAvatar = groupAvatar;
    _groupId= groupId;
    _groupDesc = groupDesc;
    _groupName = groupName;
    _memberCnt = memberCnt;
    _qrcode = qrcode;
    _notice = notice;
    _visible = visible;
    _backgroundUrl = backgroundUrl;
    _nickName = nickName;
    _groupRemark = groupRemark;
}

  GroupBaseInfoModel.fromJson(dynamic json) {
    _groupId = json['groupId'];
    _creatorId = json['creatorId'];
    _groupAvatar = json['groupAvatar'];
    _groupDesc = json['groupDesc'];
    _groupName = json['groupName'];
    _memberCnt = json['memberCnt'];
    _qrcode = json['qrcode'];
    _notice = json['notice'];
    _visible = json['visible'];
    _backgroundUrl = json['backgroundUrl'];
    _nickName = json['nickName'];
    _groupRemark = json['groupRemark'];
  }
  num? _creatorId;
  num? _groupId;
  String? _groupAvatar;
  dynamic _groupDesc;
  String? _groupName;
  num? _memberCnt;
  dynamic _qrcode;
  dynamic _notice;
  num? _visible;
  dynamic _backgroundUrl;
  String? _nickName;
  String? _groupRemark;
GroupBaseInfoModel copyWith({  num? creatorId,   num? groupId,
  String? groupAvatar,
  dynamic groupDesc,
  String? groupName,
  num? memberCnt,
  dynamic qrcode,
  dynamic notice,
  num? visible,
  dynamic backgroundUrl,
  String? nickName,
  String? groupRemark,
}) => GroupBaseInfoModel(  creatorId: creatorId ?? _creatorId,
  groupId: groupId ?? _groupId,
  groupAvatar: groupAvatar ?? _groupAvatar,
  groupDesc: groupDesc ?? _groupDesc,
  groupName: groupName ?? _groupName,
  memberCnt: memberCnt ?? _memberCnt,
  qrcode: qrcode ?? _qrcode,
  notice: notice ?? _notice,
  visible: visible ?? _visible,
  backgroundUrl: backgroundUrl ?? _backgroundUrl,
  nickName: nickName ?? _nickName,
  groupRemark: groupRemark ?? _groupRemark,
);
  num? get creatorId => _creatorId;
  num? get groupId => _groupId;
  String? get groupAvatar => _groupAvatar;
  dynamic get groupDesc => _groupDesc;
  String? get groupName => _groupName;
  num? get memberCnt => _memberCnt;
  dynamic get qrcode => _qrcode;
  dynamic get notice => _notice;
  num? get visible => _visible;
  dynamic get backgroundUrl => _backgroundUrl;
  String? get nickName => _nickName;
  String? get groupRemark => _groupRemark;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['creatorId'] = _creatorId;
    map['groupId'] = _groupId;
    map['groupAvatar'] = _groupAvatar;
    map['groupDesc'] = _groupDesc;
    map['groupName'] = _groupName;
    map['memberCnt'] = _memberCnt;
    map['qrcode'] = _qrcode;
    map['notice'] = _notice;
    map['visible'] = _visible;
    map['backgroundUrl'] = _backgroundUrl;
    map['nickName'] = _nickName;
    map['groupRemark'] = _groupRemark;
    return map;
  }

}